﻿using MongoDB.Bson.Serialization.Attributes;
using MongoDB.Bson.Serialization.IdGenerators;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace nMongo.Tests.Entities
{
    public class User
    {
        [DontGenerateMock]
        [BsonId(IdGenerator = typeof(GuidGenerator))]
        public Guid Id { get; set; }

        [BsonRequired]
        public string Name { get; set; }
        
        [BsonIgnore]
        public int Age { get; set; }
        
        [BsonElement("Active")]
        [BsonRepresentation(MongoDB.Bson.BsonType.Int32)]
        public bool IsActive { get; set; }
    }
}
